﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace B.S.BaseData.Manage.Api.Read.DTO
{
    /// <summary>
    /// 库存清单
    /// </summary>
    public class InventoryQuserDTO
    {
        public int InventoryId {  get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string Product_id { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Product_name { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string? Spec { get; set; }
        /// <summary>
        /// 类别（如移动电源、设备）
        /// </summary>
        public string? Category { get; set; }
        /// <summary>
        /// 存储单位（个、台）
        /// </summary>
        public string? Storage_unit { get; set; }
        /// <summary>
        /// 仓库编号
        /// </summary>
        public string? Warehouse_id { get; set; }
        /// <summary>
        /// 仓库名称（如 3 号仓库）
        /// </summary>
        public string? Warehouse_name { get; set; }
        /// <summary>
        /// 库位编号
        /// </summary>
        public string? Location_id { get; set; }
        /// <summary>
        /// 库位名称（如默认报废库位）
        /// </summary>
        public string? Location_name { get; set; }
        /// <summary>
        /// 库位类型（报废库区等）
        /// </summary>
        public string? Location_type { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int? Stock_quantity { get; set; }
        /// <summary>
        /// 库存上限
        /// </summary>
        public int? upper_limit { get; set; }
        /// <summary>
        /// 库存下限
        /// </summary>
        public int? lower_limit { get; set; }
        public int Id { get; set; }
        /// <summary>
        /// 操作日期（出入库时间）
        /// </summary>
        public DateTime Operation_date { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public int In_quantity { get; set; } = 0;
        /// <summary>
        /// 出库数量
        /// </summary>
        public int Out_quantity { get; set; } = 0;
        /// <summary>
        /// 产品批次编号
        /// </summary>
        public string? Batch_no { get; set; }
        /// <summary>
        /// 操作备注（如库位变动说明）
        /// </summary>
        public string? Remark { get; set; }
    }
}
